package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.Permission;
import cn.wolfcode.education.query.QueryObject;

import java.util.List;

public interface PermissionMapper {

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    Integer queryForCount(QueryObject qo);

    List<Permission> queryForList(QueryObject qo);

    List<String> selectAllPermissionName();

    List<Permission> selectPermissionByRoleId(Long roleId);

    List<String> listResourcesByEmployeeId(Long employeeId);
}